Optimal. Leaf size=96 \[ -\frac {\left (2 b c^2-a d^2\right ) \tan ^{-1}\left (\frac {\sqrt {d x-c} \sqrt {c+d x}}{c}\right )}{2 c}-\frac {a \sqrt {d x-c} \sqrt {c+d x}}{2 x^2}+b \sqrt {d x-c} \sqrt {c+d x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 114, normalized size of antiderivative = 1.19, number of steps used = 5, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {454, 101, 12, 92, 205} \[ \frac {1}{2} \sqrt {d x-c} \sqrt {c+d x} \left (2 b-\frac {a d^2}{c^2}\right )-\frac {\left (2 b c^2-a d^2\right ) \tan ^{-1}\left (\frac {\sqrt {d x-c} \sqrt {c+d x}}{c}\right )}{2 c}+\frac {a (d x-c)^{3/2} (c+d x)^{3/2}}{2 c^2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 92
Rule 101
Rule 205
Rule 454
Rubi steps
\begin {align*} \int \frac {\sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right )}{x^3} \, dx &=\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{2 c^2 x^2}+\frac {1}{2} \left (2 b-\frac {a d^2}{c^2}\right ) \int \frac {\sqrt {-c+d x} \sqrt {c+d x}}{x} \, dx\\ &=\frac {1}{2} \left (2 b-\frac {a d^2}{c^2}\right ) \sqrt {-c+d x} \sqrt {c+d x}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{2 c^2 x^2}+\frac {1}{2} \left (-2 b+\frac {a d^2}{c^2}\right ) \int \frac {c^2}{x \sqrt {-c+d x} \sqrt {c+d x}} \, dx\\ &=\frac {1}{2} \left (2 b-\frac {a d^2}{c^2}\right ) \sqrt {-c+d x} \sqrt {c+d x}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{2 c^2 x^2}+\frac {1}{2} \left (-2 b c^2+a d^2\right ) \int \frac {1}{x \sqrt {-c+d x} \sqrt {c+d x}} \, dx\\ &=\frac {1}{2} \left (2 b-\frac {a d^2}{c^2}\right ) \sqrt {-c+d x} \sqrt {c+d x}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{2 c^2 x^2}-\frac {1}{2} \left (d \left (2 b c^2-a d^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{c^2 d+d x^2} \, dx,x,\sqrt {-c+d x} \sqrt {c+d x}\right )\\ &=\frac {1}{2} \left (2 b-\frac {a d^2}{c^2}\right ) \sqrt {-c+d x} \sqrt {c+d x}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{2 c^2 x^2}-\frac {\left (2 b c^2-a d^2\right ) \tan ^{-1}\left (\frac {\sqrt {-c+d x} \sqrt {c+d x}}{c}\right )}{2 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 114, normalized size = 1.19 \[ -\frac {\sqrt {d x-c} \sqrt {c+d x} \left (c \left (a-2 b x^2\right ) \sqrt {d^2 x^2-c^2}+x^2 \left (2 b c^2-a d^2\right ) \tan ^{-1}\left (\frac {\sqrt {d^2 x^2-c^2}}{c}\right )\right )}{2 c x^2 \sqrt {d^2 x^2-c^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.07, size = 85, normalized size = 0.89 \[ -\frac {2 \, {\left (2 \, b c^{2} - a d^{2}\right )} x^{2} \arctan \left (-\frac {d x - \sqrt {d x + c} \sqrt {d x - c}}{c}\right ) - {\left (2 \, b c x^{2} - a c\right )} \sqrt {d x + c} \sqrt {d x - c}}{2 \, c x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.42, size = 157, normalized size = 1.64 \[ \frac {\sqrt {d x + c} \sqrt {d x - c} b d + \frac {{\left (2 \, b c^{2} d - a d^{3}\right )} \arctan \left (\frac {{\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}}{2 \, c}\right )}{c} + \frac {2 \, {\left (a d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{6} - 4 \, a c^{2} d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}\right )}}{{\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{4} + 4 \, c^{2}\right )}^{2}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.07, size = 182, normalized size = 1.90 \[ -\frac {\sqrt {d x -c}\, \sqrt {d x +c}\, \left (a \,d^{2} x^{2} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )-2 b \,c^{2} x^{2} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )-2 \sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, b \,x^{2}+\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, a \right )}{2 \sqrt {d^{2} x^{2}-c^{2}}\, \sqrt {-c^{2}}\, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.46, size = 98, normalized size = 1.02 \[ b c \arcsin \left (\frac {c}{d {\left | x \right |}}\right ) - \frac {a d^{2} \arcsin \left (\frac {c}{d {\left | x \right |}}\right )}{2 \, c} + \sqrt {d^{2} x^{2} - c^{2}} b - \frac {\sqrt {d^{2} x^{2} - c^{2}} a d^{2}}{2 \, c^{2}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} a}{2 \, c^{2} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.89, size = 584, normalized size = 6.08 \[ b\,\sqrt {-c}\,\sqrt {c}\,\ln \left (\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+1\right )-\frac {\frac {a\,\sqrt {-c}\,d^2}{32\,c^{3/2}}+\frac {a\,\sqrt {-c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{16\,c^{3/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}-\frac {15\,a\,\sqrt {-c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{32\,c^{3/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}}{\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+\frac {2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}+\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^6}}-b\,\sqrt {-c}\,\sqrt {c}\,\ln \left (\frac {\sqrt {c+d\,x}-\sqrt {c}}{\sqrt {-c}-\sqrt {d\,x-c}}\right )+\frac {a\,\sqrt {-c}\,d^2\,\ln \left (\frac {\sqrt {c+d\,x}-\sqrt {c}}{\sqrt {-c}-\sqrt {d\,x-c}}\right )}{2\,c^{3/2}}-\frac {a\,\sqrt {-c}\,d^2\,\ln \left (\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+1\right )}{2\,c^{3/2}}-\frac {a\,\sqrt {-c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{32\,c^{3/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}-\frac {8\,b\,\sqrt {-c}\,\sqrt {c}\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2\,\left (\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}-\frac {2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b x^{2}\right ) \sqrt {- c + d x} \sqrt {c + d x}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________